//
//  DDOpenInvoiceMoney.swift
//  DingDongZP
//
//  Created by 三秒文化 on 2016/10/17.
//  Copyright © 2016年 51ledian.com. All rights reserved.
//

import UIKit

class DDOpenInvoiceMoneyView: LDBaseView {
    
    
    
    internal var mMoneyAmount:String? {
        didSet{
            
            moneyLab?.text = "¥" + mMoneyAmount!
        }
    }
    
    private var titleLab:UILabel?
    private var moneyLab:UILabel?
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        initUI()
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    //
    func initUI() {
        
        backgroundColor = LDGolbalColor.White
        titleLab = UILabel.setBaseLab("可开票额度", fontSize: 16, titleColor: LDFontColor.Black, Alignment: .Left)
        moneyLab = UILabel.setBaseLab("¥ 0.00", fontSize: 30, titleColor: LDFontColor.Orange, Alignment: .Left)
        
        addSubview(titleLab!)
        addSubview(moneyLab!)
        
        titleLab?.snp_makeConstraints(closure: { (make) in
            
            make.top.equalTo(LDMargin_V*3)
            make.left.equalTo(LDMargin_H*4)
            make.height.equalTo(20)
        })
        
        moneyLab?.snp_makeConstraints(closure: { (make) in
            
            make.top.equalTo(titleLab!.snp_bottom).offset(LDMargin_V)
            make.left.equalTo(titleLab!)
            make.height.equalTo(35)
            
        })
        
    }

}
